package com.sky.constant;

public enum OrderSubmitCode {

    SUCCESS(0, "提交订单成功"),
    ERROR_TOKEN(1, "验证token失败"),
    ERROR_PRICE(2, "验价失败"),
    ERROR_STOCK(3, "库存不足"),
    ERROR_SKU(4, "商品不存在"),
    ERROR_USER(5, "用户不存在"),
    ERROR_ADDRESS(6, "地址不存在"),
    ERROR_PAY(7, "支付失败"),
    ERROR_PAY_TYPE(8, "支付类型错误"),
    ERROR_PAY_STATUS(9, "支付状态错误"),
    ERROR_PAY_AMOUNT(10, "支付金额错误"),
    ;

    private Integer code;
    private String msg;

    OrderSubmitCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
